from selenium import webdriver
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
driver.get('https://www.baidu.com')
search_box = driver.find_element(By.ID,"kw")
print(search_box)

search_box2 = driver.find_element(By.XPATH,"//input[@id='kw']")
print(search_box2)

elements = driver.find_element(By.CSS_SELECTOR,'div')
print(elements)